package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyStringPair implements Serializable
{
	// 日期标识
	private String				date;
	// 属性标识
	private String				id;
	private static final long	serialVersionUID	= 1L;

	public KeyStringPair(String date, String id)
	{
		this.date = date;
		this.id = id;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyStringPair o = (KeyStringPair) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (id == null && o.id != null || null != id && !id.equals(o.id))
		{
			return false;
		}
		return true;
	}

	@Override
	public String toString()
	{
		return "KeyStringPair [date=" + date + ", id=" + id + "]";
	}
}
